package com.seawaterbt.springbootshiro.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

@Data
@TableName("t_permission")
@Alias("permission")
public class Permission implements Serializable {

    private static final long serialVersionUID = -5773229402365087864L;

    @TableId(type = IdType.AUTO)
    private Integer pid;
    private Integer parentId;
    private Integer resourceType;
    private String name;
    private String url;
    private String description;
    private String permissionCode;
    private Integer sort;

}
